{loop $category $cat}
    {$cat['name']}
{/loop}

<?php 
if($cate==1){
    echo 1;
}
if($cate==2){
    echo 2;
}
if($cate==3){
    echo 3;
}
if($cate==4){
    echo 4;
}
if($cate==5){
    echo 5;
}
 ?>
